package com.gs.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
//import com.gs.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(description = "用户")
@TableName("gs_user")
public class UserEntity extends BaseEntity {

	/** 用户名 */
	@ApiModelProperty(name = "name",value = "用户名")
	private String name;

	/** 密码 */
	@ApiModelProperty(name = "encodePassword",value = "密码")
	private String encodePassword;

	/** 不告诉用户的真实密码 */
	@ApiModelProperty(name = "realPassword",value = "不告诉用户的真实密码")
	private String realPassword;

	/** 邮箱 */
	@ApiModelProperty(name = "email",value = "邮箱")
	private String email;

	/** 昵称 */
	@ApiModelProperty(name = "nickName",value = "昵称")
	private String nickName;

	/** 注册时间 */
	@ApiModelProperty(name = "registerTime",value = "注册时间")
	@JSONField(format = "yyyy-MM-dd HH:mm:ss") // 日期格式化
	private LocalDateTime registerTime;

	/** 用户头像id(oss文件) */
	@ApiModelProperty(name = "headImgId",value = "用户头像id(oss文件)")
	private Long headImgId;

	/** 具体的权限(圣旨) */
	@ApiModelProperty(name = "permissions",value = "具体的权限(圣旨)")
	private String permissions;

	/** 角色列表(可能是有名无权) */
	@ApiModelProperty(name = "roleIds",value = "角色列表(可能是有名无权)")
	private String roleIds;

	/** 系统名称(多租户) */
	@ApiModelProperty(name = "sysName",value = "系统名称(多租户)")
	private String sysName;
}